trigger InstrumentProjectBonusTrigger on InstrumentProjectBonus__c(before insert ,before update ,after update,after insert ) {
    

    //新建和更新的时候匹配达成率

    /*if(trigger.isBefore  && (trigger.isInsert || trigger.isUpdate)){
    	System.debug('InstrumentProjectBonusTrigger.InstrumentProjectBonusHandler.matchRate');
    	InstrumentProjectBonusHandler.matchRate(trigger.new, trigger.isInsert ? null : trigger.oldMap);

    }*/
    //标记关联合同
	if(trigger.isBefore && (trigger.isInsert || trigger.isUpdate)){
		InstrumentProjectBonusHandler.backWriteBillFill(trigger.new,trigger.oldMap);

		InstrumentProjectBonusHandler.comfirm(trigger.new,trigger.oldMap);
	}
}